import 'dart:convert' show json;
import 'package:x3_base_core/x3_base_core.dart';

class BusinessCustomerDetailsDynamicModel {
  BusinessCustomerDetailsDynamicModel({
    this.id,
    this.title,
    this.typeName,
    this.img,
  });

  factory BusinessCustomerDetailsDynamicModel.fromJson(Map<String, dynamic> jsonRes) => jsonRes == null
      ? null
      : BusinessCustomerDetailsDynamicModel(
          id: asT<String>(jsonRes['id']),
          title: asT<String>(jsonRes['title']),
          typeName: asT<String>(jsonRes['typeName']),
          img: asT<String>(jsonRes['img']),
        );

  String id;
  String title;
  String typeName;
  String img;

  Map<String, dynamic> toJson() => <String, dynamic>{
        'id': id,
        'title': title,
        'typeName': typeName,
        'img': img,
      };
  @override
  String toString() {
    return json.encode(this);
  }
}
